<?php
namespace App\Model;
use Illuminate\Database\Eloquent\Model;
class Picture extends Model{
	//表名
	protected  $table = 'img';
	//白名单
	protected $fillable = ['img_id','news_id','img_src','state','createtime'];
	public function getImg(){
		$data = $this->select('*')->get();
		if(!empty($data)){
			return $data;
		}
		return [];

	}

	public function uploadImg(){

        
  
    }  
}



















?>